const devServer = {
  proxy: {
    '/api2': {
      target: 'http://192.168.220.130:8001',
      changeOrigin: true,
      pathRewrite: {
        '^/api': '/api'
      }
    }
  }
}

const prodServer = {
  proxy: {
    '/api2': {
      target: 'http://your-production-api.com', // 替换为你的生产环境API地址
      changeOrigin: true,
      pathRewrite: {
        '^/api': '/api'
      }
    }
  }
}

module.exports = {
  devServer: process.env.NODE_ENV === 'development' ? devServer : prodServer
} 